From 7a9a19bd5a18113441917ac399ab2414d0e279df Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Fri, 18 Nov 2005 14:04:53 +0100 Subject: [PATCH] From Ken Grant: Add per command help / make help match new man pages. Signed-off-by: Ewan Mellor --- tools/python/xen/xm/main.py | 235 +++++++++++++++++++++++++----------- 1 file changed, 162 insertions(+), 73 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index f3fd00f6d9..4633b5870c 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -40,26 +40,81 @@ from xen.xm.opts import * import console +# Strings for shorthelp +console_help = "console Attach to domain DomId's console." +create_help = """create [-c] + [Name=Value].. Create a domain based on Config File""" +destroy_help = "destroy Terminate a domain immediately" +help_help = "help Display this message" +list_help = "list [--long] [DomId, ...] List information about domains" +mem_max_help = "mem-max Set maximum memory reservation for a domain" +mem_set_help = "mem-set Adjust the current memory usage for a domain" +migrate_help = "migrate Migrate a domain to another machine" +pause_help = "pause Pause execution of a domain" +reboot_help = "reboot [-w][-a] Reboot a domain" +restore_help = "restore Create a domain from a saved state file" +save_help = "save Save domain state (and config) to file" +shutdown_help ="shutdown [-w][-a][-R|-H] Shutdown a domain" +top_help = "top Monitor system and domains in real-time" +unpause_help = "unpause Unpause a paused domain" + +help_spacer = """ + """ + +# Strings for longhelp +sysrq_help = "sysrq Send a sysrq to a domain" +domid_help = "domid Converts a domain name to a domain id" +domname_help = "domname Convert a domain id to a domain name" +set_vcpus_help = """set-vcpus Enable the specified number of VCPUs in a + domain""" +vcpu_list_help = "vcpu-list List the VCPUs for a domain (or all domains)" +vcpu_pin_help = "vcpu-pin Set which cpus a VCPU can use" +dmesg_help = "dmesg [--clear] Read or clear Xen's message buffer" +info_help = "info Get information about the xen host" +log_help = "log Print the xend log" +sched_bvt_help = """sched-bvt Set Borrowed Virtual Time scheduler + parameters""" +sched_bvt_ctxallow_help = """sched-bvt-ctxallow Set the BVT scheduler context switch + allowance""" +sched_sedf_help = "sched-sedf Set simple EDF parameters" +block_attach_help = """block-attach + [BackDomId] Create a new virtual block device""" +block_detach_help = """block-detach Destroy a domain's virtual block device, + where may either be the device ID + or the device name as mounted in the guest""" + +block_list_help = "block-list List virtual block devices for a domain" +network_attach_help = """network-attach [script=